package com.repairService.core.enums;

/**
 * 请求返回状态码
 *
 * @author Administrator
 * @since 2018/8/10 19:01
 */
public enum ResponseCode {
    RESPONSE_STATE_200("200", "请求成功"),
    RESPONSE_STATE_500("500", "业务处理失败"),
    RESPONSE_STATE_401("401", "没有权限"),
    RESPONSE_STATE_404("404", "数据不存在"),
    RESPONSE_STATE_1000("1000", "缺少参数"),
    RESPONSE_STATE_2000("2000", "平行越权"),

    RESPONSE_STATE_PROCESS_UNDEFINED("2100", "流程未定义"),
    RESPONSE_STATE_INVALID_OPERATOR("2200", "节点没有合法的处理人"),
    RESPONSE_STATE_TASK_DUMPLICATED_HANDLE("2101", "待办任务重复处理");

    private final String code;
    private final String msg;

    ResponseCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String code() {
        return this.code;
    }

    public String msg() {
        return this.msg;
    }
}
